<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>添加新类型</title>
<link rel=stylesheet type=text/css href="css/input.css">
<style type="text/css">
	body{
		background:#dae4fe;
		margin:0px;
		padding:0px;
	}
	.one{
		float:right;
	}
	.two{
		width:70px;
		margin-top:20px;
		margin-left:87px;
		font-size:14px;
	}
	.three{
		color:red;
	}
	select{
		border:1px solid #CCC;
		border-radius:3px;
	}
	.one1{
		font-size:14px;
		font-weight:bold;
		margin:5px;
	}
</style>
</head>
<body>
	<div class="one1">
		商品类型管理->添加商品类型
		<hr>
	</div>
	<form action="addcommoditytype" method="post">
		<table>
			<tr>
				<td class="one">类型名称：</td>
				<td><input type="text" name="ctId" /></td>
			</tr>
			<tr>
				<td class="one">父类型：</td>
				<td>
					<select name="parentsId">
						<c:forEach items="${list}" var="m">
							<option value="${m.ctId}">${m.ctName}</option>
						</c:forEach>
				  	</select>
				</td>
			</tr>
			<tr>
				<td class="three">${param.erorr}</td>
			</tr>
		
		</table>
		<input type="submit" value="添加" class="two" />
	</form>
</body>
</html>